import request from '@/router/axios'

export function fetchUnqualifiedReasonTree(query) {
  return request({
    url: '/eims/unqualifiedReason/tree',
    method: 'get',
    params: query
  })
}

export function getUnqualifiedReasonList(query) {
  return request({
    url: '/eims/unqualifiedReason/list',
    method: 'get',
    params: query
  })
}

export function addUnqualifiedReasonObj(obj) {
  return request({
    url: '/eims/unqualifiedReason',
    method: 'post',
    data: obj
  })
}

export function getUnqualifiedReasonObj(id) {
  return request({
    url: '/eims/unqualifiedReason/' + id,
    method: 'get'
  })
}

export function delUnqualifiedReasonObj(id) {
  return request({
    url: '/eims/unqualifiedReason/' + id,
    method: 'delete'
  })
}

export function putUnqualifiedReasonObj(obj) {
  return request({
    url: '/eims/unqualifiedReason',
    method: 'put',
    data: obj
  })
}
